package com.aica.service;

import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @author yly
 * @date 2021/2/5 11:19
 */
public interface MyUserDetailsService extends UserDetailsService {
    /**
     * 解析获得角色
     * @param roleIds 角色id集合
     * @return 封装的角色信息
     */
    List<SimpleGrantedAuthority> getAuthority(List<Integer> roleIds);
}
